/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.gu.derp.model;

import edu.gu.derp.database.Queries;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Jakob
 */

public class Database {
    //private static final IController controller = new DummyController();
    private static final EntityManagerFactory emf = Persistence.createEntityManagerFactory("derp_pu");
    private static final Queries query = new Queries(emf);
    private static final IController controller = new DatabaseController(query);     
    public static IController getController() {
        return controller;
    }   
}
